package ex3;

public class WeekWorker extends Employee {
	double weekEarnings;
	
	public WeekWorker(double weekEarnings) {
		super();
		this.weekEarnings = weekEarnings;
	}

	public double earnings() {
		return 365 / 7 * weekEarnings;
	}
}
